package com.mes.service.jy;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.jy.CodeMepper;
import com.mes.entity.jy.Code;

@Service
@Transactional
public class CodeServiseImpl implements CodeServise{

	@Resource
	private CodeMepper codeMepper;

	@Override
	public int insert(Code code) {
		return codeMepper.insert(code);
	}

	@Override
	public int selectAct(String did) {
		return codeMepper.selectAct(did);
	}

	@Override
	public int selectNogood(String did) {
		return codeMepper.selectNogood(did);
	}

	@Override
	public int selectCode(String code) {
		return codeMepper.selectCode(code);
	}

	@Override
	public int countBycode(String code) {
		return codeMepper.countBycode(code);
	}

	@Override
	public int checkNogoodCode(String code) {
		return codeMepper.checkNogoodCode(code);
	}
}
